﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;


using System.Xml.Linq;


namespace NOAH.CMS.Repository
{
    /// <summary>
    /// Summary description for NewsCategory
    /// </summary>
    public partial class NewsCategory : BaseEntity
    {
        public string SEOLink
        {
            get
            {
                if (!string.IsNullOrEmpty(this.Link)) return this.Link;
                return string.Format("/news/list/{0}/{1}", this.ID, BuildSEO(this.Name));
            }
        }

        public string SEOText
        {
            get
            {
                return string.Format("{0}", BuildSEO(this.Name));
            }
        }
    }
}